package router

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"share/api/handler"
)

func Router(c *gin.Engine) {
	PostApi := c.Group("/api/post")     //帖子路由组
	FileApi := c.Group("/api/file")     //文件路由组
	ReviewApi := c.Group("/api/review") //审核路由组
	UserApi := c.Group("/api/user)")    //用户路由组

	c.POST("/upload", handler.Upload)
	c.POST("/add", handler.PostAdd)
	c.POST("/delete", handler.PostDelete)
	c.GET("/show", handler.PostShow)
	c.GET("/list", handler.PostList)
	fmt.Println(PostApi, FileApi, ReviewApi, UserApi)
}
